package com.pzhu.service;

import com.pzhu.domain.Brand;
import com.pzhu.util.PageBean;
import org.apache.ibatis.annotations.Param;

import java.io.IOException;
import java.util.List;

public interface BrandService {
    List<Brand>  selectAll() throws IOException;

    void add(Brand brand) throws IOException;

    void update(Brand brand);

    void delete(int id);

    void deleteByIds(@Param("ids") int[] ids);

    PageBean<Brand> selectByPage(int currentPage, int pageSize);

    /**
     * 分页条件查询
     * @param currentPage 当前页码
     * @param pageSize  每页展示条数
     * @return
     */
    PageBean<Brand> selectByPageAndCondition(int currentPage, int pageSize, Brand brand);


}
